package com.toocms.jinjuhang.ui.enterprise_windows

import android.app.Application
import com.blankj.utilcode.util.LogUtils
import com.toocms.jinjuhang.config.Urls
import com.toocms.jinjuhang.data.system.QiyeshichuangData
import com.toocms.jinjuhang.widget.view_model.requestData
import com.toocms.tab.base.BaseModel
import com.toocms.tab.base.BaseViewModel
import com.toocms.tab.bus.event.SingleLiveEvent

class EnterpriseWindowsModel(application: Application) : BaseViewModel<BaseModel>(application) {

    val urlSingleLiveEvent = SingleLiveEvent<String>()

    init {
        requestData(
            Urls.System.QI_YE_SHI_CHUANG,
            resultClass = QiyeshichuangData::class.java,
            result = {
                LogUtils.e(it.url)
                urlSingleLiveEvent.value = it.url
            })
    }
}